vim.g.mapleader = " "
vim.g.maplocalleader = " "

-- 导入核心配置
require('core.options')
-- require('core.keymaps')
-- require('core.autocmds')

-- 引导并设置 lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable",
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

-- 设置并加载插件
require("lazy").setup("plugins") -- 这会加载 nvim/lua/plugins/ 下的所有.lua文件
